<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Statis_model extends CI_Model {

	public function get_list($id=false){
		if($id) $this->db->where('id_halaman',$id);
		return $this->db->get('halamanstatis');
	}

	public function do_add($param = false){
		if($param){
			return $this->db->insert('halamanstatis',$param);
		}
		return false;
	}

	public function do_update($id = false,$param = false){
		if($id){
			$this->db->where('id_halaman',$id);
			return $this->db->update('halamanstatis',$param);
		}
		return false;
	}

	public function do_delete($id = false){
		if($id){
			$this->db->where('id_halaman',$id);
			return $this->db->delete('halamanstatis');
		}return false;
	}
}